/* $RCSFile: ADNDynOrganization.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/CRMWrapper3/DynEntities/ADNDynOrganization.cs $
 * $log$
 * Revision 19 2010/10/02 14:01:49  christian.surieux
 *   Corrected a bug in allmost everyADNDyn file for PrimaryFieldVualue
 * Revision 6 2010/08/06 19:56:33  christian.surieux
 *   Added Log to All cs files
 */

/* Copyrights Christian Surieux 2010 */
/* Class ADNDynOrganization */
/* Date 2010-01-06 16:10:05Z */

using System;
using System.Diagnostics;
using System.Collections;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using CrmSdk;

namespace AddonNice.CRMWrapper
{
    public class ADNDynOrganization : DynEntity
    {
        protected class Ftor: DFactor
        {
            public Ftor() : base(CrmStr.organization)
            {}

            public override Type DynType
            { get { return typeof(ADNDynOrganization); } }

            public override string DynTypename
            {   get{ return CrmStr.organization;}}

            public override DynEntity Build()
            {   return new ADNDynOrganization();}

            public override DynEntity Build(CRMWrapperBase w, InternalDynamicEntity dEntity, PropertyDescriptorCollection wproperties)
            {   return new ADNDynOrganization(w, dEntity, wproperties, null);}

            public override DynEntity Build(CRMWrapperBase w, string PrimaryFieldValue)
            {   return new ADNDynOrganization(w,PrimaryFieldValue);}

            public override DynEntity Build(CRMWrapperBase w,Guid PrimaryKeyValue)
            {   return new ADNDynOrganization(w,PrimaryKeyValue);}
        }

        static ADNDynOrganization(){new Ftor();} 
        
        public override bool HasOwnerProperty
        {
            get { return false; }
        }
        
        public ADNDynOrganization() : base() { }
        
        public ADNDynOrganization(CRMWrapperBase w,string PrimaryFieldValue)
            : base(w,CrmStr.organization)
        {
            if ( PrimaryFieldValue != string.Empty )
                name = PrimaryFieldValue;
        }
        
        public ADNDynOrganization(CRMWrapperBase w,Guid CrmId) : base(w,CrmStr.organization,CrmId) { }
        
        public ADNDynOrganization(CRMWrapperBase w,InternalDynamicEntity e) : base(w,CrmStr.organization,e,null,null) { }
        
        public ADNDynOrganization(CRMWrapperBase w,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(w,CrmStr.organization,e,prop,s) { }
        
        public ADNDynOrganization(ResetWrapperHandler fn,string PrimaryFieldValue)
            : base(fn,CrmStr.organization)
        {
            if ( PrimaryFieldValue != string.Empty )
                name = PrimaryFieldValue;
        }
        
        public ADNDynOrganization(ResetWrapperHandler fn,Guid CrmId) : base(fn,CrmStr.organization,CrmId) { }
        
        public ADNDynOrganization(ResetWrapperHandler fn,InternalDynamicEntity e) : base(fn,CrmStr.organization,e,null,null) { }
        
        public ADNDynOrganization(ResetWrapperHandler fn,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(fn,CrmStr.organization,e,prop,s) { }

        /* Properties */

        [CrmDynAttribute(CrmStr.organization)]
        public new Guid organizationid
        {
            get
            { return KeyPropertyValue(CrmStr.organizationid); }
            set
            { AddKeyProperty(CrmStr.organizationid,value); }
        }

        protected override void SetCrmIdProperty(Guid crmId)
        {
            if ( !dicProperty.ContainsKey(CrmStr.organizationid) || KeyPropertyValue(CrmStr.organizationid) != crmId )
                organizationid = crmId;
        }
        public override Guid PrimaryKeyGuidValue
        {
            get
            { return organizationid; }
            set { organizationid = value; }
        }
        
        public override string PrimaryFieldName
        {
            get
            { return CrmStr.name; }
            set
            {}
        }

        /// <summary>
        /// Value contained in the PrimaryField for the DynEntity or empty if no PrimaryField
        /// </summary>
        public override string PrimaryFieldStringValue
        {
            get
            {
                return name;
            }
            set
            {
                name =   value;
            }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid acknowledgementtemplateid
        {
            get
            { return LookupPropertyValue(CrmStr.acknowledgementtemplateid); }
            set
            { AddLookupProperty(CrmStr.acknowledgementtemplateid,"CrmStr.xxx",value); }
        }

        public string acknowledgementtemplatename
        {
            get
            { return LookupPropertyName(CrmStr.acknowledgementtemplateid); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowaddressbooksyncs
        {
            get
            { return BooleanPropertyValue(CrmStr.allowaddressbooksyncs); }
            set
            { AddBooleanProperty(CrmStr.allowaddressbooksyncs,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowautoresponsecreation
        {
            get
            { return BooleanPropertyValue(CrmStr.allowautoresponsecreation); }
            set
            { AddBooleanProperty(CrmStr.allowautoresponsecreation,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowautounsubscribe
        {
            get
            { return BooleanPropertyValue(CrmStr.allowautounsubscribe); }
            set
            { AddBooleanProperty(CrmStr.allowautounsubscribe,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowautounsubscribeacknowledgement
        {
            get
            { return BooleanPropertyValue(CrmStr.allowautounsubscribeacknowledgement); }
            set
            { AddBooleanProperty(CrmStr.allowautounsubscribeacknowledgement,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowmarketingemailexecution
        {
            get
            { return BooleanPropertyValue(CrmStr.allowmarketingemailexecution); }
            set
            { AddBooleanProperty(CrmStr.allowmarketingemailexecution,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowofflinescheduledsyncs
        {
            get
            { return BooleanPropertyValue(CrmStr.allowofflinescheduledsyncs); }
            set
            { AddBooleanProperty(CrmStr.allowofflinescheduledsyncs,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowoutlookscheduledsyncs
        {
            get
            { return BooleanPropertyValue(CrmStr.allowoutlookscheduledsyncs); }
            set
            { AddBooleanProperty(CrmStr.allowoutlookscheduledsyncs,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowunresolvedpartiesonemailsend
        {
            get
            { return BooleanPropertyValue(CrmStr.allowunresolvedpartiesonemailsend); }
            set
            { AddBooleanProperty(CrmStr.allowunresolvedpartiesonemailsend,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool allowwebexcelexport
        {
            get
            { return BooleanPropertyValue(CrmStr.allowwebexcelexport); }
            set
            { AddBooleanProperty(CrmStr.allowwebexcelexport,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string amdesignator
        {
            get
            { return StringPropertyValue(CrmStr.amdesignator); }
            set
            { AddStringProperty(CrmStr.amdesignator,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid basecurrencyid
        {
            get
            { return LookupPropertyValue(CrmStr.basecurrencyid); }
            set
            { AddLookupProperty(CrmStr.basecurrencyid,"CrmStr.xxx",value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string basecurrencyName
        {
            get
            { return LookupPropertyName(CrmStr.basecurrencyid); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string blockedattachments
        {
            get
            { return StringPropertyValue(CrmStr.blockedattachments); }
            set
            { AddStringProperty(CrmStr.blockedattachments,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string bulkoperationprefix
        {
            get
            { return StringPropertyValue(CrmStr.bulkoperationprefix); }
            set
            { AddStringProperty(CrmStr.bulkoperationprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid businessclosurecalendarid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.businessclosurecalendarid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.businessclosurecalendarid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int calendartype
        {
            get
            { return NumberPropertyValue(CrmStr.calendartype); }
            set
            { AddNumberProperty(CrmStr.calendartype,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string campaignprefix
        {
            get
            { return StringPropertyValue(CrmStr.campaignprefix); }
            set
            { AddStringProperty(CrmStr.campaignprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string caseprefix
        {
            get
            { return StringPropertyValue(CrmStr.caseprefix); }
            set
            { AddStringProperty(CrmStr.caseprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string contractprefix
        {
            get
            { return StringPropertyValue(CrmStr.contractprefix); }
            set
            { AddStringProperty(CrmStr.contractprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currencydecimalprecision
        {
            get
            { return NumberPropertyValue(CrmStr.currencydecimalprecision); }
            set
            { AddNumberProperty(CrmStr.currencydecimalprecision,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currencydisplayoption
        {
            get
            { return PicklistPropertyIntValue(CrmStr.currencydisplayoption); }
            set
            { AddPicklistProperty(CrmStr.currencydisplayoption,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currencyformatcode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.currencyformatcode); }
            set
            { AddPicklistProperty(CrmStr.currencyformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string currencyformatcodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.currencyformatcode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string currencysymbol
        {
            get
            { return StringPropertyValue(CrmStr.currencysymbol); }
            set
            { AddStringProperty(CrmStr.currencysymbol,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentbulkoperationnumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentbulkoperationnumber); }
            set
            { AddNumberProperty(CrmStr.currentbulkoperationnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentcampaignnumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentcampaignnumber); }
            set
            { AddNumberProperty(CrmStr.currentcampaignnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentcasenumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentcasenumber); }
            set
            { AddNumberProperty(CrmStr.currentcasenumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentcontractnumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentcontractnumber); }
            set
            { AddNumberProperty(CrmStr.currentcontractnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentimportsequencenumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentimportsequencenumber); }
            set
            { AddNumberProperty(CrmStr.currentimportsequencenumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentinvoicenumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentinvoicenumber); }
            set
            { AddNumberProperty(CrmStr.currentinvoicenumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentkbnumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentkbnumber); }
            set
            { AddNumberProperty(CrmStr.currentkbnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentordernumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentordernumber); }
            set
            { AddNumberProperty(CrmStr.currentordernumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentparsedtablenumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentparsedtablenumber); }
            set
            { AddNumberProperty(CrmStr.currentparsedtablenumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int currentquotenumber
        {
            get
            { return NumberPropertyValue(CrmStr.currentquotenumber); }
            set
            { AddNumberProperty(CrmStr.currentquotenumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int dateformatcode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.dateformatcode); }
            set
            { AddPicklistProperty(CrmStr.dateformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string dateformatcodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.dateformatcode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string dateformatstring
        {
            get
            { return StringPropertyValue(CrmStr.dateformatstring); }
            set
            { AddStringProperty(CrmStr.dateformatstring,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string dateseparator
        {
            get
            { return StringPropertyValue(CrmStr.dateseparator); }
            set
            { AddStringProperty(CrmStr.dateseparator,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string decimalsymbol
        {
            get
            { return StringPropertyValue(CrmStr.decimalsymbol); }
            set
            { AddStringProperty(CrmStr.decimalsymbol,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string disabledreason
        {
            get
            { return StringPropertyValue(CrmStr.disabledreason); }
            set
            { AddStringProperty(CrmStr.disabledreason,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int emailsendpollingperiod
        {
            get
            { return NumberPropertyValue(CrmStr.emailsendpollingperiod); }
            set
            { AddNumberProperty(CrmStr.emailsendpollingperiod,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool enablepricingoncreate
        {
            get
            { return BooleanPropertyValue(CrmStr.enablepricingoncreate); }
            set
            { AddBooleanProperty(CrmStr.enablepricingoncreate,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string featureset
        {
            get
            { return StringPropertyValue(CrmStr.featureset); }
            set
            { AddStringProperty(CrmStr.featureset,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string fiscalcalendarstart
        {
            get
            { return DateTimePropertyValue(CrmStr.fiscalcalendarstart); }
            set
            { AddDateTimeProperty(CrmStr.fiscalcalendarstart,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string fiscalperiodformat
        {
            get
            { return StringPropertyValue(CrmStr.fiscalperiodformat); }
            set
            { AddStringProperty(CrmStr.fiscalperiodformat,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int fiscalperiodtype
        {
            get
            { return NumberPropertyValue(CrmStr.fiscalperiodtype); }
            set
            { AddNumberProperty(CrmStr.fiscalperiodtype,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool fiscalsettingsupdated
        {
            get
            { return BooleanPropertyValue(CrmStr.fiscalsettingsupdated); }
            set
            { AddBooleanProperty(CrmStr.fiscalsettingsupdated,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int fiscalyeardisplaycode
        {
            get
            { return NumberPropertyValue(CrmStr.fiscalyeardisplaycode); }
            set
            { AddNumberProperty(CrmStr.fiscalyeardisplaycode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string fiscalyearformat
        {
            get
            { return StringPropertyValue(CrmStr.fiscalyearformat); }
            set
            { AddStringProperty(CrmStr.fiscalyearformat,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string fiscalyearperiodconnect
        {
            get
            { return StringPropertyValue(CrmStr.fiscalyearperiodconnect); }
            set
            { AddStringProperty(CrmStr.fiscalyearperiodconnect,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int fullnameconventioncode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.fullnameconventioncode); }
            set
            { AddPicklistProperty(CrmStr.fullnameconventioncode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string fullnameconventioncodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.fullnameconventioncode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool grantaccesstonetworkservice
        {
            get
            { return BooleanPropertyValue(CrmStr.grantaccesstonetworkservice); }
            set
            { AddBooleanProperty(CrmStr.grantaccesstonetworkservice,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool ignoreinternalemail
        {
            get
            { return BooleanPropertyValue(CrmStr.ignoreinternalemail); }
            set
            { AddBooleanProperty(CrmStr.ignoreinternalemail,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid integrationuserid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.integrationuserid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.integrationuserid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string invoiceprefix
        {
            get
            { return StringPropertyValue(CrmStr.invoiceprefix); }
            set
            { AddStringProperty(CrmStr.invoiceprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isappmode
        {
            get
            { return BooleanPropertyValue(CrmStr.isappmode); }
            set
            { AddBooleanProperty(CrmStr.isappmode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isdisabled
        {
            get
            { return BooleanPropertyValue(CrmStr.isdisabled); }
            set
            { AddBooleanProperty(CrmStr.isdisabled,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isduplicatedetectionenabled
        {
            get
            { return BooleanPropertyValue(CrmStr.isduplicatedetectionenabled); }
            set
            { AddBooleanProperty(CrmStr.isduplicatedetectionenabled,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isduplicatedetectionenabledforimport
        {
            get
            { return BooleanPropertyValue(CrmStr.isduplicatedetectionenabledforimport); }
            set
            { AddBooleanProperty(CrmStr.isduplicatedetectionenabledforimport,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isduplicatedetectionenabledforofflinesync
        {
            get
            { return BooleanPropertyValue(CrmStr.isduplicatedetectionenabledforofflinesync); }
            set
            { AddBooleanProperty(CrmStr.isduplicatedetectionenabledforofflinesync,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isduplicatedetectionenabledforonlinecreateupdate
        {
            get
            { return BooleanPropertyValue(CrmStr.isduplicatedetectionenabledforonlinecreateupdate); }
            set
            { AddBooleanProperty(CrmStr.isduplicatedetectionenabledforonlinecreateupdate,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isfiscalperiodmonthbased
        {
            get
            { return BooleanPropertyValue(CrmStr.isfiscalperiodmonthbased); }
            set
            { AddBooleanProperty(CrmStr.isfiscalperiodmonthbased,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool ispresenceenabled
        {
            get
            { return BooleanPropertyValue(CrmStr.ispresenceenabled); }
            set
            { AddBooleanProperty(CrmStr.ispresenceenabled,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool isregistered
        {
            get
            { return BooleanPropertyValue(CrmStr.isregistered); }
            set
            { AddBooleanProperty(CrmStr.isregistered,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool issopintegrationenabled
        {
            get
            { return BooleanPropertyValue(CrmStr.issopintegrationenabled); }
            set
            { AddBooleanProperty(CrmStr.issopintegrationenabled,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int isvintegrationcode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.isvintegrationcode); }
            set
            { AddPicklistProperty(CrmStr.isvintegrationcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string kbprefix
        {
            get
            { return StringPropertyValue(CrmStr.kbprefix); }
            set
            { AddStringProperty(CrmStr.kbprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int languagecode
        {
            get
            { return NumberPropertyValue(CrmStr.languagecode); }
            set
            { AddNumberProperty(CrmStr.languagecode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string languagecodename
        {
            get
            { return StringPropertyValue(CrmStr.languagecodename); }
            set
            { AddStringProperty(CrmStr.languagecodename,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int localeid
        {
            get
            { return NumberPropertyValue(CrmStr.localeid); }
            set
            { AddNumberProperty(CrmStr.localeid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int longdateformatcode
        {
            get
            { return NumberPropertyValue(CrmStr.longdateformatcode); }
            set
            { AddNumberProperty(CrmStr.longdateformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int maxappointmentdurationdays
        {
            get
            { return NumberPropertyValue(CrmStr.maxappointmentdurationdays); }
            set
            { AddNumberProperty(CrmStr.maxappointmentdurationdays,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int maximumtrackingnumber
        {
            get
            { return NumberPropertyValue(CrmStr.maximumtrackingnumber); }
            set
            { AddNumberProperty(CrmStr.maximumtrackingnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int maxrecordsforexporttoexcel
        {
            get
            { return NumberPropertyValue(CrmStr.maxrecordsforexporttoexcel); }
            set
            { AddNumberProperty(CrmStr.maxrecordsforexporttoexcel,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int maxuploadfilesize
        {
            get
            { return NumberPropertyValue(CrmStr.maxuploadfilesize); }
            set
            { AddNumberProperty(CrmStr.maxuploadfilesize,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int minaddressbooksyncinterval
        {
            get
            { return NumberPropertyValue(CrmStr.minaddressbooksyncinterval); }
            set
            { AddNumberProperty(CrmStr.minaddressbooksyncinterval,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int minofflinesyncinterval
        {
            get
            { return NumberPropertyValue(CrmStr.minofflinesyncinterval); }
            set
            { AddNumberProperty(CrmStr.minofflinesyncinterval,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int minoutlooksyncinterval
        {
            get
            { return NumberPropertyValue(CrmStr.minoutlooksyncinterval); }
            set
            { AddNumberProperty(CrmStr.minoutlooksyncinterval,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public override string name
        {
            get
            { return StringPropertyValue(CrmStr.name); }
            set
            { AddStringProperty(CrmStr.name,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int negativecurrencyformatcode
        {
            get
            { return NumberPropertyValue(CrmStr.negativecurrencyformatcode); }
            set
            { AddNumberProperty(CrmStr.negativecurrencyformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int negativeformatcode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.negativeformatcode); }
            set
            { AddPicklistProperty(CrmStr.negativeformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string negativeformatcodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.negativeformatcode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int nexttrackingnumber
        {
            get
            { return NumberPropertyValue(CrmStr.nexttrackingnumber); }
            set
            { AddNumberProperty(CrmStr.nexttrackingnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string numberformat
        {
            get
            { return StringPropertyValue(CrmStr.numberformat); }
            set
            { AddStringProperty(CrmStr.numberformat,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string numbergroupformat
        {
            get
            { return StringPropertyValue(CrmStr.numbergroupformat); }
            set
            { AddStringProperty(CrmStr.numbergroupformat,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string numberseparator
        {
            get
            { return StringPropertyValue(CrmStr.numberseparator); }
            set
            { AddStringProperty(CrmStr.numberseparator,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string orderprefix
        {
            get
            { return StringPropertyValue(CrmStr.orderprefix); }
            set
            { AddStringProperty(CrmStr.orderprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string parsedtablecolumnprefix
        {
            get
            { return StringPropertyValue(CrmStr.parsedtablecolumnprefix); }
            set
            { AddStringProperty(CrmStr.parsedtablecolumnprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string parsedtableprefix
        {
            get
            { return StringPropertyValue(CrmStr.parsedtableprefix); }
            set
            { AddStringProperty(CrmStr.parsedtableprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string picture
        {
            get
            { return StringPropertyValue(CrmStr.picture); }
            set
            { AddStringProperty(CrmStr.picture,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string pmdesignator
        {
            get
            { return StringPropertyValue(CrmStr.pmdesignator); }
            set
            { AddStringProperty(CrmStr.pmdesignator,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int pricingdecimalprecision
        {
            get
            { return NumberPropertyValue(CrmStr.pricingdecimalprecision); }
            set
            { AddNumberProperty(CrmStr.pricingdecimalprecision,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid privilegeusergroupid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.privilegeusergroupid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.privilegeusergroupid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid privreportinggroupid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.privreportinggroupid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.privreportinggroupid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string privreportinggroupname
        {
            get
            { return StringPropertyValue(CrmStr.privreportinggroupname); }
            set
            { AddStringProperty(CrmStr.privreportinggroupname,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string quoteprefix
        {
            get
            { return StringPropertyValue(CrmStr.quoteprefix); }
            set
            { AddStringProperty(CrmStr.quoteprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string referencesitemapxml
        {
            get
            { return StringPropertyValue(CrmStr.referencesitemapxml); }
            set
            { AddStringProperty(CrmStr.referencesitemapxml,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string registrationxml
        {
            get
            { return StringPropertyValue(CrmStr.registrationxml); }
            set
            { AddStringProperty(CrmStr.registrationxml,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool rendersecureiframeforemail
        {
            get
            { return BooleanPropertyValue(CrmStr.rendersecureiframeforemail); }
            set
            { AddBooleanProperty(CrmStr.rendersecureiframeforemail,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid reportinggroupid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.reportinggroupid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.reportinggroupid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string schemanameprefix
        {
            get
            { return StringPropertyValue(CrmStr.schemanameprefix); }
            set
            { AddStringProperty(CrmStr.schemanameprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool sharetopreviousowneronassign
        {
            get
            { return BooleanPropertyValue(CrmStr.sharetopreviousowneronassign); }
            set
            { AddBooleanProperty(CrmStr.sharetopreviousowneronassign,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool showweeknumber
        {
            get
            { return BooleanPropertyValue(CrmStr.showweeknumber); }
            set
            { AddBooleanProperty(CrmStr.showweeknumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string sitemapxml
        {
            get
            { return StringPropertyValue(CrmStr.sitemapxml); }
            set
            { AddStringProperty(CrmStr.sitemapxml,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int sortid
        {
            get
            { return NumberPropertyValue(CrmStr.sortid); }
            set
            { AddNumberProperty(CrmStr.sortid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid sqlaccessgroupid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.sqlaccessgroupid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.sqlaccessgroupid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string sqlaccessgroupname
        {
            get
            { return StringPropertyValue(CrmStr.sqlaccessgroupname); }
            set
            { AddStringProperty(CrmStr.sqlaccessgroupname,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public bool sqmenabled
        {
            get
            { return BooleanPropertyValue(CrmStr.sqmenabled); }
            set
            { AddBooleanProperty(CrmStr.sqmenabled,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid supportuserid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.supportuserid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.supportuserid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid systemuserid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.systemuserid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.systemuserid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int tagmaxaggressivecycles
        {
            get
            { return NumberPropertyValue(CrmStr.tagmaxaggressivecycles); }
            set
            { AddNumberProperty(CrmStr.tagmaxaggressivecycles,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int tagpollingperiod
        {
            get
            { return NumberPropertyValue(CrmStr.tagpollingperiod); }
            set
            { AddNumberProperty(CrmStr.tagpollingperiod,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int timeformatcode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.timeformatcode); }
            set
            { AddPicklistProperty(CrmStr.timeformatcode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string timeformatcodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.timeformatcode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string timeformatstring
        {
            get
            { return StringPropertyValue(CrmStr.timeformatstring); }
            set
            { AddStringProperty(CrmStr.timeformatstring,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string timeseparator
        {
            get
            { return StringPropertyValue(CrmStr.timeseparator); }
            set
            { AddStringProperty(CrmStr.timeseparator,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int timezoneruleversionnumber
        {
            get
            { return NumberPropertyValue(CrmStr.timezoneruleversionnumber); }
            set
            { AddNumberProperty(CrmStr.timezoneruleversionnumber,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int tokenexpiry
        {
            get
            { return NumberPropertyValue(CrmStr.tokenexpiry); }
            set
            { AddNumberProperty(CrmStr.tokenexpiry,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string tokenkey
        {
            get
            { return StringPropertyValue(CrmStr.tokenkey); }
            set
            { AddStringProperty(CrmStr.tokenkey,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string trackingprefix
        {
            get
            { return StringPropertyValue(CrmStr.trackingprefix); }
            set
            { AddStringProperty(CrmStr.trackingprefix,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int trackingtokenidbase
        {
            get
            { return NumberPropertyValue(CrmStr.trackingtokenidbase); }
            set
            { AddNumberProperty(CrmStr.trackingtokenidbase,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int trackingtokeniddigits
        {
            get
            { return NumberPropertyValue(CrmStr.trackingtokeniddigits); }
            set
            { AddNumberProperty(CrmStr.trackingtokeniddigits,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int uniquespecifierlength
        {
            get
            { return NumberPropertyValue(CrmStr.uniquespecifierlength); }
            set
            { AddNumberProperty(CrmStr.uniquespecifierlength,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public Guid usergroupid
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.usergroupid); }
            set
            { AddUniqueIdentifierProperty(CrmStr.usergroupid,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string v3calloutconfighash
        {
            get
            { return StringPropertyValue(CrmStr.v3calloutconfighash); }
            set
            { AddStringProperty(CrmStr.v3calloutconfighash,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int weekstartdaycode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.weekstartdaycode); }
            set
            { AddPicklistProperty(CrmStr.weekstartdaycode,value); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public string weekstartdaycodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.weekstartdaycode); }
        }

        [CrmDynAttribute(CrmStr.organization)]
        public int yearstartweekcode
        {
            get
            { return NumberPropertyValue(CrmStr.yearstartweekcode); }
            set
            { AddNumberProperty(CrmStr.yearstartweekcode,value); }
        }
    }
}